<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp" />
<%@ include file="/WEB-INF/jsp/common/_includes.jsp"%>
<div class="ui grid">
	<div class="row">
		<div class="column">
			<div class="ui two column grid">
				<div class="three wide column">
					<jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
						<jsp:param name="index" value="2701" />
					</jsp:include>
				</div>
				<div id="container" class="thirteen wide column">
					<ol class="breadcrumb">
						<li><a href="/">众筹后台管理</a></li>
						<li class="active">问题管理</li>
					</ol>
					<ul class="nav nav-pills" role="tablist">
					</ul>
					<table class="table table-hover">
						<thead>
							<tr>
								<th>题目ID</th>
								<th>项目ID</th>
								<th  style="width: 70%">提问内容</th>
								<th>状态</th>
								<th>是否回答</th>
								<th>操作</th>
							</tr>
						</thead>  
						<tbody>
							<c:forEach items="${paginate.pageList}" var="zcQuestion">
								<tr>
									<td>${zcQuestion.id}</td>
									<td>${zcQuestion.projectId}</td>
									<td>${zcQuestion.questionContent}</td>
									<td>
                                       <c:choose>
											<c:when test="${zcQuestion.isAnswer==0}">
												<a href="">未回答</a>
											</c:when>
											<c:when test="${zcQuestion.isAnswer==1}">
												<a href="">已回答</a>
											</c:when>
										</c:choose>
									</td>
									<td><c:choose>
											<c:when test="${zcQuestion.isAnswer==0}">
												<a class="btn active btn-primary"
													href="/zcAnswers/${zcQuestion.id}/add" target="_blank">点击回答</a>
											</c:when>
											<c:when test="${zcQuestion.isAnswer==1}">
												<a class="btn active btn-danger"
													href="/zcQuestion/${zcQuestion.id}/details" target="_blank">查看详情</a>
											</c:when>
										</c:choose> </td>
										<td>
										<a href="/zcQuestion/${zcQuestion.id}/${zcQuestion.isAnswer}/delete"
										onclick="return confirm('确实要删除吗？')"
										class="btn active btn-danger">删除</a>
										</td>

								</tr>
							</c:forEach>
						</tbody>
					</table>
					<div class="page-info clearfix">
						<jsp:include page="/WEB-INF/jsp/common/_page.jsp" />
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
